package com.vmladenov.cook.core.db.proxy;

import com.vmladenov.cook.core.html.Recipe;

public final class BigRecipe
{
	public long ID;
	public String Title;
	public String Products;
	public String Description;
	public String Notes;
	public String[] ImageUrls;
	public String ExternalUrl;
	public Boolean IsFavorite;
	public double Rating;

	public Recipe toRecipe()
	{
		Recipe recipe = new Recipe();
		recipe.setId(ID);
		recipe.setTitle(Title);
		recipe.setProducts(Products);
		recipe.setDescription(Description);
		recipe.setNotes(Notes);
		recipe.setImageUrl(ImageUrls[0]);
		recipe.setUrl(ExternalUrl);
		recipe.setIsFavorite(IsFavorite);
		recipe.setRating(Rating);
		return recipe;
	}
}
